//
//  YDPeripheralDetailTableViewCell.m
//  IngCard
//
//  Created by kf on 2017/5/31.
//  Copyright © 2017年 IngDan. All rights reserved.
//

#import "YDPeripheralDetailTableViewCell.h"

@implementation YDPeripheralDetailTableViewCellModel

-(CGFloat) viewHeight
{
    return [[self viewClass] viewHeight:self];
}


-(Class) viewClass
{
    return [YDPeripheralDetailTableViewCell class];
}


@end

@implementation YDPeripheralDetailTableViewCell


+(CGFloat)viewHeight:(id<YDViewDataSource>) dataSource
{
    return 64;
}

//子类覆写
-(void) setDataSource:(YDPeripheralDetailTableViewCellModel*) dataSource
{
    self.textLabel.text = NSStringFormat(@"%@",dataSource.characteristic.UUID);
    //信号和服务
    self.detailTextLabel.text = [NSString stringWithFormat:@"RSSI:%@",dataSource.characteristic.description];
}


@end
